<!DOCTYPE html>
<html>

	<head>
		<meta charset="utf-8">
		<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
		<title>选择币种</title>
		<link href="css/mui.min.css" rel="stylesheet" />
		
		<style type="text/css">
			#hea-wrap {
				position: fixed;
				top: 0;
				left: 0;
				right: 0;
				box-sizing: border-box;
				z-index: 100;
				background: white;
			}
	
			.hea-con {
				padding:15px 20px;
				text-align: center;
				box-shadow: 0 10px 10px -6px #eee;
			}
			
			.hea-con>span:first-of-type {
				font-size: 18px;
			}
			.coins{
				padding: 15px 20px;
				justify-content: flex-start;
				border-bottom: 1px solid #eee;
				text-align: center;
			}
		</style>
	</head>

	<body style="background: white;">
		<div id="app">
			<div id="hea-wrap">
				<div class="hea-con">
					<span>选择地区</span>
				</div>
			</div>
			<div style="margin-top: 60px;">
				<div class="coins" v-for="(val,index) in country" :key='index' @click='send(val)'>
					{{val.country+' '+val.areacode}}
				</div>
			</div>
		</div>
		<script src="js/comm.js"></script>
		<script src="js/vue.min.js" type="text/javascript" charset="utf-8"></script>
		<script type="text/javascript" charset="utf-8">
			var send=function(co){
				app.$data.country=JSON.parse(co);
			};
			var app = new Vue({
				el: '#app',
				data: {
					country:[]
				},
				methods: {
					//选择的币种带回到闪兑里面去
					send: function(val) {
						plus.webview.getWebviewById('regisetInputPhone').evalJS("country('"+JSON.stringify(val)+"')");
						plus.webview.currentWebview().close();
					}
				}
			});
		</script>
	</body>

</html>